﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jizsoft.JFrame.Identity.Web.Exchange
{
    public class RequestAttributes
    {
        public const string Email = "email";
        public const string Nickname = "nickname";
        public const string Avatar = "avatar";

        public static bool Contains(string attribute)
        {
            if (string.Equals(attribute, Email)
                || string.Equals(attribute, Nickname)
                || string.Equals(attribute, Avatar))
            {
                return true;
            }
            return false;
        }

        public static string GetAttributeName(string attribute)
        {
            if(string.Equals(attribute, "avatar"))
            {
                return "Avatar";
            }
            else if (string.Equals(attribute, "email"))
            {
                return "Email";
            }
            return null;
        }
    }
}
